home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4859 < prev    next >
Encoding:
Text File  |  1996-08-05  |  3.1 KB  |  68 lines

  1. Newsgroups: comp.lang.c
  2. Path: ERA.COM!era!spencer
  3. From: spencer@ERA.COM (Spencer Allain)
  4. Subject: Re: Undefined behavior? on type conversion, was: Re: Hungarian notation
  5. In-Reply-To: tknarr@xmission.com's message of 7 Feb 1996 03: 43:44 GMT
  6. Message-ID: <SPENCER.96Feb7092147@zorgon.ERA.COM>
  7. Sender: news@ERA.COM
  8. Organization: Engineering Research Associates, Vienna, VA
  9. References: <30C40F77.53B5@swsbbs.com> <4d2ok0$69s@beach.and.nl>
  10.     <4er2qo$h2s@galaxy.ucr.edu> <31118641.6802368@nntp.ix.netcom.com>
  11.     <4eurpq$b75@news.xmission.com> <31137427.133220928@nntp.ix.netcom.com>
  12.     <4f975g$g18@news.xmission.com>
  13. Date: Wed, 7 Feb 1996 14:21:47 GMT
  14.  
  15. In article <4f975g$g18@news.xmission.com> tknarr@xmission.com   ( Todd Knarr ) writes:
  16.  
  17.    In <31137427.133220928@nntp.ix.netcom.com>, miker3@ix.netcom.com (Mike Rubenstein) writes:
  18.    >No, I can't tell that you read the standard conservatively.  You seem
  19.    >to be adding things that just aren't there.  You're saying that
  20.  
  21.    The thing is, I don't recall anything in the standard where "result"
  22.    precludes side-effects. So, I don't assume there is such a prohibition.
  23.    I may be wrong, but if I am I probably won't break code because of it.
  24.  
  25.    >The standard does not say that a machine must have the ability to do
  26.    >multiplication either.  That doesn't mean that an implemenation can
  27.    >simply give an exception if you do a multiplication -- it must handle
  28.    >it in software since the standard requires a C implementation be able
  29.    >to do multiplication.
  30.  
  31.    Except that it does require multiplication to be done, and it does
  32.    leave the results of things like overflow up to the application. Ditto
  33.    the result of / when the second operand is 0.
  34.  
  35.    Unfortunately, for the last few weeks I've been doing the antithesis
  36.    of language-lawyering. I'm going to drop this until I can dig the
  37.    right books out from under the piles ( I hate RTFB references ).
  38.  
  39.    --
  40.    Todd Knarr : tknarr@xmission.com      |  finger for PGP public key
  41.                      |  Member, USENET Cabal
  42.  
  43.    Seriously, I don't want to die just yet.  I don't care how
  44.    good-looking they are, I! don't! want! to! die!"
  45.                        -- Megazone ( UF1 )
  46.  
  47.  
  48. Yeah, I know, I haven't added anything, but if you look at the newsgroups
  49. line it no longer includes Ada, Eiffel, Modula-3, C++, etc. since this
  50. is strictly a C specification issue.  Please reply to this message and
  51. continue this thread of discussion -- just not in all the other
  52. newgroups :-)
  53.  
  54. -Spencer
  55.  
  56. ----------------------------------------------------------------------
  57. Spencer Allain                    E-mail:  spencer@era.com
  58. Engineering Research Associates   Phone :  (703) 734-8800 x1414
  59. 1595 Spring Hill Road             Fax   :  (703) 827-9411
  60. Vienna, VA  22182-2235
  61.  
  62. Ask me why _NOT_ to buy anything from Royal Prestige, a Hycite Co.
  63. ----------------------------------------------------------------------
  64. <A HREF=http://www.research.digital.com/SRC/modula-3/html/home.html>
  65.              Modula-3 Home Page DEC SRC</A>
  66. <A HREF=http://www.vlsi.polymtl.ca/m3/>Modula-3 FAQ, etc. </A>
  67. ----------------------------------------------------------------------
  68.